package com.itheima.d3_abstract.demo1;

/**
 * 狗类，需要继承Animal动物类
 */
public class Dog extends Animal {
    //注意：子类继承抽象父类，必须重写父类所有的抽象方法！不然代码报错！


    public Dog() {
        super();
    }

    @Override
    public void eat() {
        System.out.println("狗吃肉！");
    }
}
